import { http } from "@/utils/request";



/**
 * 课程列表
 * @param {} data 
 * @returns 
 */
export const getCourseList = () => {
	return http({
		method: 'get',
		url: `/course/list`,
	});
};
/**
 * 课程列表
 * @param {} data 
 * @returns 
 */
export const getCourListByStudentId = () => {
	return http({
		method: 'get',
		url: `/course/getCourListByStudentId`,
	});
};
/**
 * 创建课程
 * @param {} data 
 * @returns 
 */
export const newCourse = (data) => {
	return http({
		method: 'post',
		url: `/course/newCourse`,
		data
	});
};
/**
 * 添加新的课程记录
 * @param {} data 
 * @returns 
 */
export const postNewRecord = (data) => {
	return http({
		method: 'post',
		url: `/course/postNewRecord`,
		data
	});
};
/**
 * 获取课程记录列表
 * @param {} data 
 * @returns 
 */
export const getRecordListByCourseId = (data) => {
	return http({
		method: 'get',
		url: `/course/getRecordList`,
		data
	});
};
/**
 * 获取课程记录详情
 * @param {} data 
 * @returns 
 */
export const getRecordDetailByIdAndStuId = (data) => {
	return http({
		method: 'get',
		url: `/course/getRecordDetailByIdAndStuId`,
		data
	});
};









